package com.sfac.springCloudAdmin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * AccountController
 */
@Controller
public class AccountController {

	/**
	 * 127.0.0.1/login ---- get
	 */
	@GetMapping("/login")
	public String loginPage() {
		return "account/login";
	}

	/**
	 * 127.0.0.1/logout ---- get
	 */
	@GetMapping("/logout")
	public String logout() {
		return "redirect:/login";
	}

	/**
	 * 127.0.0.1/account/users ---- get
	 */
	@GetMapping("/account/users")
	public String usersPage() {
		return "index";
	}
}
